// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import EnemyElement from "../EnemyElement";
import Slime10002IdleState from "./Slime10002IdleState";
import Slime10002RunState from "./Slime10002RunState";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Slime10002Element extends EnemyElement {

    protected onLoad() {
        super.onLoad();
        this.idleState = new Slime10002IdleState(this, "run");
        this.runState = new Slime10002RunState(this, "run");
    }
}
